{include file="header.html"}
<div class="title tc ml-10 mr-10">
    <h2>业务查询</h2>
</div>
<div class="content px-20">
	<section id="step1">
        <form name="myForm" id="myForm" action="/index.php?act=ordersearch&st=orderSearch" method="post">
		<table class="my-10">
		    <tbody>
		        <tr>
		            <td class="pl-15 tr">购买单位: </td><td class="pl-15"><input id="visit_name" name="visit_name" type="text" placeholder="可使用购买单位名称查询"/></td>
		        </tr>
		        <tr>
		            <td class="pl-15 tr">合同编号: </td><td class="pl-15"><input id="visit_no" name="visit_no" type="text" placeholder="可使用合同编号查询"/>
                    <br/><font color='red' id='td_visit_no'></font>
                    </td>
		        </tr>
		    </tbody>
		</table>
		<p class="tc mt-30"><span id="btn_submit" class="btn w-150" style="display:inline-block; margin: 0px auto;"> 检索 </span></p>
        </form>
	</section>
</div>
<script type="text/javascript">
$(function(){
	$("#btn_submit").click(function(){
		var visit_name = $.trim($("#visit_name").val());
		var visit_no = $.trim($("#visit_no").val());

		var errCount = 0;
		var errMsg = '';
		if(visit_name == '' && visit_no == '' ) {
			errMsg = "请至少输入一个检索项！";
            $("#td_visit_no").html(errMsg).show();;
			errCount = errCount+1;
		}

		if(errCount == 0) {
            $("#myForm").submit();
		}
		return false;
	});
	$("input,textarea,select").change(function(){
		$("#td_visit_no").hide();
	});
});
</script>
{include file="footer.html"}